<template>
	<view class="app">
		<!-- 顶部搜索和顶部标题 -->
		<view class="head">
			<view class="head-a">
				<view class="head-a-a">
					<uni-search-bar class="uni-mt-10" radius="100" placeholder="输入课程关键字" clearButton="none"
						cancelButton="none" box-shadow="0 0 10px rgba(0, 0, 0, 0.1)"></uni-search-bar>
				</view>
			</view>
		</view>
		<!-- 正在学习课程 -->
		<view class="xxkc">
			<view class="xxkc-a">
				<text style="font-size: 20px; font-weight: blod;">正在学习课程</text>
				<view class="xxkc-a-a">
					<text style="color: #7985FF; font-size: 12px; margin-left: 20px;">已学课程</text>
				</view>
			</view>
			<view class="xxkc-b">
				<view class="kc-a" v-for="(item,index) in list2" :key="index">
					<image :src="item.img" style="width: 100%; height: 70%;"></image>
					<view class="kc-a-a">
						<view class="kc-a-a-a">
							<text style="font-size: 15px; font-weight: bold; margin-left: 10px;">{{item.kename}}</text>
						</view>
						<view class="kc-a-a-b">
							<view class="kc-a-a-b-a">
								<view
									style="width: 60%; height: 80%; display: flex; margin-left: 10px; margin-top: 4px;border-radius: 50%;">
									<image :src="item.tx" style="width: 100%; height: 100%;"></image>
								</view>

							</view>
							<view class="kc-a-a-b-b">
								<text>{{item.name}}</text>
								<text>观看至<text style="color: #FBBD61;">{{item.people}}</text>%</text>
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>
		<!-- 下半部分 -->
		<view class="xbbf">
			<!-- 下载课程 -->
			<view class="xzkc">
				<image src="../../static/u3417.png" style="width: 26px; height: 26px; margin-left: 10px;"></image>
				<text style="font-size: 16px; margin-left: 10px;">下载课程</text>
			</view>
			<!-- 收藏课程 -->
			<view class="xzkc">
				<image src="../../static/u3420.png" style="width: 26px; height: 26px; margin-left: 10px;"></image>
				<text style="font-size: 16px; margin-left: 10px;">收藏课程</text>
			</view>
			<!-- 收藏技巧 -->
			<view class="xzkc">
				<image src="../../static/u3437.png" style="width: 26px; height: 26px; margin-left: 10px;"></image>
				<text style="font-size: 16px; margin-left: 10px;">收藏技巧</text>
			</view>
			<!-- 关注讲师 -->
			<view class="xzkc">
				<image src="../../static/u3423.png" style="width: 26px; height: 26px; margin-left: 10px;"></image>
				<text style="font-size: 16px; margin-left: 10px;">关注讲师</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list2: [{
					img: '/static/u85.png',
					kename: 'IOS高级课程',
					name: '我草泥马',
					people: 50,
					tx: '/static/u2542.png'
				}]
			};
		}
	}
</script>

<style lang="scss">
	.app {
		padding: 0;
		margin: 0;

		// 顶部搜索
		.head {
			width: 100%;
			height: 100px;
			margin: 0 auto;
			display: flex;
			align-items: flex-end;

			.head-a {
				width: 100%;
				height: 55%;
				display: flex;
				align-items: center;

				.head-a-a {
					width: 70%;
					height: 55px;
					margin-left: 20px;
				}
			}
		}

		// 正在学习课程
		.xxkc {
			width: 93%;
			height: 300px;
			margin: 0 auto;

			.xxkc-a {
				width: 100%;
				height: 15%;
				display: flex;
				justify-content: space-between;
				align-items: center;

				.xxkc-a-a {
					width: 90px;
					height: 25px;
					background-color: #EDEFFE;
					border-radius: 10px;
				}
			}

			.xxkc-b {
				width: 100%;
				height: 85%;

				.kc-a {
					width: 100%;
					height: 100%;
					background: -webkit-linear-gradient(270deg, rgba(219, 218, 252, 1) 0%, rgba(219, 218, 252, 1) 0%, rgba(221, 220, 252, 1) 22%, rgba(223, 220, 251, 1) 54%, rgba(235, 233, 254, 1) 75%, rgba(244, 242, 255, 1) 100%, rgba(244, 242, 255, 1) 100%);
					margin-top: 20px;

					.kc-a-a {
						width: 100%;
						height: 30%;

						.kc-a-a-a {
							width: 100%;
							height: 30%;
						}

						.kc-a-a-b {
							width: 100%;
							height: 43px;
							display: flex;

							.kc-a-a-b-a {
								width: 17%;
								height: 100%;
							}

							.kc-a-a-b-b {
								width: 85%;
								height: 100%;
								display: flex;
								color: #999999;
								font-size: 13px;
								justify-content: space-between;
								align-items: center;
							}
						}
					}
				}
			}
		}

		// 下半部分
		.xbbf {
			width: 93%;
			margin: 0 auto;
			margin-top: 35px;

			// 下载课程
			.xzkc {
				width: 100%;
				height: 60px;
				border-bottom: 1px solid #F2F2F2;
				margin: 0 auto;
				margin-top: 10px;
				display: flex;
				align-items: center;
				justify-content: flex-start;
			}
		}



	}
</style>